package javase.implements_abstract_extend_clone;

abstract class Order implements OrderApi{
    //订单编号
    private Integer orderNo;
    //订单名
    private String orderName;
    //订单金额
    private Double orderPrice;
    //订单数量
    private Integer orderNumber;

    public Order(Integer orderNo, String orderName, Double orderPrice, Integer orderNumber) {
        this.orderNo = orderNo;
        this.orderName = orderName;
        this.orderPrice = orderPrice;
        this.orderNumber = orderNumber;
    }

    public Order() {
    }

    public Integer getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public Double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(Double orderPrice) {
        this.orderPrice = orderPrice;
    }

    public Integer getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Integer orderNumber) {
        this.orderNumber = orderNumber;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderNo=" + orderNo +
                ", orderName=" + orderName +
                ", orderPrice=" + orderPrice +
                ", orderNumber=" + orderNumber +
                '}';
    }
}
